﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.DtoModel.SystemManager.ApplyGather;
using SystemCenterSoa.IRepository.SystemManager.ApplyGather;
using SystemCenterSoa.PoModel.SystemManager.ApplyGather;

namespace SystemCenterSoa.Service.SystemManager.ApplyGather
{
    public class DepartmentActivityApplyService
    {
        private IDepartmentActivityApplyRepository _departmentActivityApplyRepository;

        public DepartmentActivityApplyService(IDepartmentActivityApplyRepository departmentActivityApplyRepository)
        {
            _departmentActivityApplyRepository = departmentActivityApplyRepository;
        }
        public bool GetDepartmentActivityApplyAdd(DepartmentActivityApplyPo departmentActivityApply)
        {
            return _departmentActivityApplyRepository.GetDepartmentActivityApplyAdd(departmentActivityApply);
        }
        public List<DepartmentActivityApplyDto> GetDepartmentActivityApplyList(int deId, string nian, string yue, int pageIndex, int pageSize)
        {
            return _departmentActivityApplyRepository.GetDepartmentActivityApplyList(deId, nian, yue, pageIndex, pageSize);
        }
        public DepartmentActivityApplyPo GetDepartmentActivityApplyFan(int id)
        {
            return _departmentActivityApplyRepository.GetDepartmentActivityApplyFan(id);
        }
        public bool GetDepartmentActivityApplyUpdate(DepartmentActivityApplyPo departmentActivityApply)
        {
            return _departmentActivityApplyRepository.GetDepartmentActivityApplyUpdate(departmentActivityApply);
        }
        public bool GetDepartmentActivityApplyDel(string ids)
        {
            return _departmentActivityApplyRepository.GetDepartmentActivityApplyDel(ids);
        }
    }
}
